package org.dschini.ui.maps.world.asia {

	import flash.display.Sprite;
	import org.dschini.ui.maps.*;

	public class IndonesiaMap extends Map
	{
		public var indonesiaMapStateLines:Sprite;
		public var indonesiaMapShape:Sprite;
		
		override public function set mouseEnabled( mouseEnabled:Boolean ):void
		{
			super.mouseEnabled = mouseEnabled;
			indonesiaMapShape.mouseEnabled = mouseEnabled;
			indonesiaMapStateLines.mouseEnabled = mouseEnabled;
		}
		
		override public function set doubleClickEnabled( doubleClickEnabled:Boolean ):void
		{
			super.doubleClickEnabled = doubleClickEnabled;
			indonesiaMapShape.doubleClickEnabled = doubleClickEnabled;
			indonesiaMapStateLines.doubleClickEnabled = doubleClickEnabled;
		}
		
		override public function render():void
		{
			indonesiaMapShape.visible = data.shapeVisible ? true : false;
			if( data.shapeColorTransform ){
				indonesiaMapShape.transform.colorTransform = data.shapeColorTransform;
			}
			indonesiaMapStateLines.visible = data.stateLinesVisible ? true : false;
			if( data.stateLinesColorTransform ){
				indonesiaMapStateLines.transform.colorTransform = data.stateLinesColorTransform;
			}
		}
	}	
}
